package com.ehome.poct.core.api.feign;

import com.ehome.poct.core.api.dto.order.PromotionBundlePriceProfitConfDTO;
import com.ehome.poct.core.api.vo.order.PromotionBundlePriceProfitConfVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.*;

import java.util.List;


/**
 * 捆绑促销活动 价格体系，分润体系配置表控制器
 *
 * @author muqiu
 * @Date 2022-07-19 17:43
 */
@FeignClient(value = "${service.poct-core:}${service.suffix.poct-core:}",path="/bundlePriceProfitConf",contextId = "PromotionBundlePriceProfitConfFeginClient")
public interface PromotionBundlePriceProfitConfFeginClient {

    @GetMapping()
    List<PromotionBundlePriceProfitConfDTO> list(@SpringQueryMap PromotionBundlePriceProfitConfDTO setTestStripPriceProfitSchemeId);
    @DeleteMapping("/{id}")
    Boolean delete(@PathVariable Long id);

    @PostMapping
    PromotionBundlePriceProfitConfVO add(@RequestBody PromotionBundlePriceProfitConfDTO c);
}
